﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TimeTracker.SqlLiteProvider
{
    public partial class Session : ISession
    {
        IProject ISession.Project
        {
            get { return (IProject)this.Project; }
        }

        DateTime ISession.StartTime
        {
            get
            {
                return this.StartTime;
            }
            set
            {
                this.StartTime = value;
            }
        }

        DateTime? ISession.EndTime
        {
            get
            {
                return this.StopTime;
            }
            set
            {
                this.StopTime = value;
            }
        }

        bool ISession.Archived
        {
            get
            {
                return this.Archived;
            }
            set
            {
                this.Archived = value;
            }
        }

        IEnumerable<INote> ISession.Notes
        {
            get { return this.Notes.Cast<INote>(); }
        }
    }
}
